import { _decorator, animation, Animation, AnimationClip, Component, Node, Sprite, SpriteFrame, UITransform } from 'cc';
import { EnemyManager } from '../../Base/EnemyManager';
import { IEntity } from '../../Levels';
import { IronSkeletonStateMachine } from './IronSkeletonStateMachine';
const { ccclass, property } = _decorator;


@ccclass('IronSekeletonManager')
export class IronSekeletonManager extends EnemyManager {

    async init(params: IEntity) {
        this.fsm = this.addComponent(IronSkeletonStateMachine);
        await this.fsm.init();
        super.init(params);
        super.update();

    }



}


